
import { createRouter, createWebHistory } from "vue-router";
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      name: "login",
      path: "/login",
      component: () => import("../view/Login.vue"),
    },
    {
      path:"/examPage",
      name:"examPage",
      component:()=>import("../view/ExamPage.vue"),
    },
    {
      name: "index",
      path: "/",
      component: () => import("../view/Index/Index.vue"),
      children:[
        {
          path:"/myClass",
          name:"myclass",
          component:()=>import("../view/Index/MyClass/MyClass.vue")
        },
        {
          path:"/question",
          name:"question",
          component:()=>import("../view/Index/PublicQuestion/PublicQuestion.vue")
        },
        {
          path:"/myClass/Info",
          name:"myClassInfo",
          component:()=>import("../view/Index/MyClass/MyClassInfo.vue")
        },
        {
          path:"/myExam",
          name:"myexam",
          component:()=>import("../view/Index/MyExam/MyExam.vue"),
        },

        {
          path:"/myExam/start",
          name:"myexamstart",
          component:()=>import("../view/Index/MyExam/MyExamStart.vue")
        },
        {
          path:"/myExam/info",
          name:"myexaminfo",
          component:()=>import("../view/Index/MyExam/MyExamInfo.vue"),
        },
        {
          path:"/myExam/update",
          name:"myExamManage",
          component:()=>import("../view/Index/MyExam/MyExamManage.vue")
        },
        {
          path:"/myExam/referee",
          name:"myExamReferee",
          component:()=>import("../view/Index/MyExam/MyExamReferee.vue")
        },
        {
          path:"/myExam/referee/detail",
          name:"myExamRefereeDetail",
          component:()=>import("../view/Index/MyExam/MyExamRefereeDetail.vue")
        },
        {
          path:"/welcome",
          name:"welcome",
          component:()=>import("../view/Index/IndexWelcome.vue")
        },
        {
          path:"/userInfo",
          name:"userInfo",
          component:()=>import("../view/Index/PersonalCenter/UserInfo.vue")
        },
      ]
    },
  ],
});
export default router;